<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Store_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-store_name" data-rule="required" class="form-control" name="row[store_name]" type="text" value="{$row.store_name|htmlentities}">
        </div>
    </div>
    <!-- <div class="form-group one_sel">
        <label class="control-label col-xs-12 col-sm-2">区域:</label>
        <div class="form-inline" data-toggle="cxselect" data-selects="province,city,area">
            <select class="province form-control" data-rule="required" id="c-province" name="row[province]" data-url="ajax/area">
                <option value="{$row.province|htmlentities}" selected=""></option>
            </select>
            <select class="city form-control" data-rule="required" id="c-city" name="row[city]" data-url="ajax/area">
                <option value="{$row.city|htmlentities}" selected=""></option>
            </select>
            <select class="area form-control" data-rule="required" id="c-area" name="row[area]" data-url="ajax/area">
                <option value="{$row.area|htmlentities}" selected=""></option>
            </select>
        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address" data-rule="required" class="form-control" name="row[address]" type="text" value="{$row.address|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Real_address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-real_address" data-rule="required" class="form-control" name="row[real_address]" type="text" value="{$row.real_address|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lat')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-lat" data-rule="required" class="form-control" name="row[lat]" type="text" value="{$row.lat|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lng')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-lng" data-rule="required" class="form-control" name="row[lng]" type="text" value="{$row.lng|htmlentities}">
        </div>
        <span><a href="https://api.map.baidu.com/lbsapi/getpoint/index.html" target="_blank">坐标拾取器</a></span>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Zz_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-zz_num" data-rule="required" class="form-control" name="row[zz_num]" type="text" value="{$row.zz_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Store_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-store_type" data-rule="required" class="form-control" name="row[store_type]" type="text" value="{$row.store_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Registered_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-registered_price" data-rule="required" class="form-control" name="row[registered_price]" type="text" value="{$row.registered_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Establishment_day')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-establishment_day" data-rule="required" class="form-control datetimepicker" name="row[establishment_day]" data-date-format="YYYY-MM-DD" type="text" value="{$row.establishment_day|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tel')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tel" data-rule="required" class="form-control" name="row[tel]" type="text" value="{$row.tel|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Contact_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contact_name" data-rule="required" class="form-control" name="row[contact_name]" type="text" value="{$row.contact_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Contact_tel')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contact_tel" data-rule="required" class="form-control" name="row[contact_tel]" type="text" value="{$row.contact_tel|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[start_time]" type="text" value="{$row.start_time}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('End_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[end_time]" type="text" value="{$row.end_time}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Registration_authority')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-registration_authority" data-rule="required" class="form-control" name="row[registration_authority]" type="text" value="{$row.registration_authority|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Business_scope')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-business_scope" data-rule="required" class="form-control" name="row[business_scope]" type="text" value="{$row.business_scope|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_count')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-car_count" class="form-control" name="row[car_count]" type="number" value="{$row.car_count|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Install_count')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-install_count" class="form-control" name="row[install_count]" type="number" value="{$row.install_count|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Road_no')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-road_no" data-rule="required" class="form-control" name="row[road_no]" type="text" value="{$row.road_no|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Road_endtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-road_endtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[road_endtime]" type="text" value="{$row.road_endtime}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!-- <div class="input-group">
                <input id="c-images" data-rule="required" class="form-control" size="50" name="row[images]" type="text" value="{$row.images|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-images" class="btn btn-danger faupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-images"></ul> -->
            <ul class="row list-inline faupload-preview" id="p-content_images">
                {volist name="$row['imagelist']" id="imagelist"}
                <li class="col-xs-3"><a href="{$imagelist|htmlentities}" data-url="{$imagelist|htmlentities}" target="_blank" class="thumbnail"><img src="{$imagelist|htmlentities}" onerror="this.src='{$imagelist|htmlentities}';this.onerror=null;" class="img-responsive"></a></li>
                {/volist}
            </ul>
        </div>
    </div>
    <div class="form-group" style="display: none;">
        <label class="control-label col-xs-12 col-sm-2">{:__('Add_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-add_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[add_time]" type="text" value="{:$row.add_time?datetime($row.add_time):''}">
        </div>
    </div>
    <div class="form-group" style="display: none;">
        <label class="control-label col-xs-12 col-sm-2">{:__('Edit_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-edit_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[edit_time]" type="text" value="{:$row.edit_time?datetime($row.edit_time):''}">
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Password')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-password" data-rule="required" class="form-control" name="row[password]" type="text" value="">
        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_jin')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-is_jin" class="form-control selectpicker" name="row[is_jin]">
                {foreach name="isJinList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.is_jin"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_del')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-is_del" class="form-control selectpicker" name="row[is_del]">
                {foreach name="isDelList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.is_del"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div> -->
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div> -->
    {if condition="$row['status'] eq 2"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-status" class="form-control selectpicker"  name="row[status]">
                <option value="3">通过</option>
                <option value="4">拒绝</option>
            </select>

        </div>
    </div>
    {/if}
   

    
    <div class="form-group" style="display: none;" id="remark">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remark" data-rule="required" class="form-control" name="row[remark]" type="text" value="{$row.remark|htmlentities}">
        </div>
    </div>
    {if condition="$row['is_tong'] eq 0 and $row['status'] eq 2"}
    <div class="form-group tong">
        <label for="username" class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="username" name="row[username]" value="" data-rule="required;username" />
        </div>
    </div>
    <!-- <div class="form-group tong">
        <label for="email" class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="email" class="form-control" id="email" name="row[email]" value="" data-rule="required;email" />
        </div>
    </div> -->
    <div class="form-group tong">
        <label for="mobile" class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="mobile" name="row[mobile]" value="" data-rule="required;mobile" />
        </div>
    </div>
    <!-- <div class="form-group tong" >
        <label for="nickname" class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="nickname" name="row[nickname]" autocomplete="off" value="" data-rule="required" />
        </div>
    </div> -->
    <div class="form-group tong">
        <label for="password" class="control-label col-xs-12 col-sm-2">{:__('Password')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="password" class="form-control" id="password" name="row[password]" autocomplete="new-password" value="" data-rule="required;password" />
        </div>
    </div>
    {/if}

    {if !empty($change_info)}
    <div class="form-group" >
        <label class="control-label col-xs-12 col-sm-2">{:__('修改说明')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-change_title" readonly  class="form-control" type="text" style="height: 100px;">{$change_info.change_title|htmlentities}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('补充图片')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!-- <div class="input-group">
                <input id="c-change_images" data-rule="required" class="form-control" size="50" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-change_images" class="btn btn-danger faupload" data-input-id="c-change_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-change_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-change_images" class="btn btn-primary fachoose" data-input-id="c-change_images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-change_images"></span>
            </div> -->
            <ul class="row list-inline faupload-preview" id="p-change_images">
                {volist name="$change_images" id="change_images"}
                <li class="col-xs-3"><a href="{$change_images|htmlentities}" data-url="{$change_images|htmlentities}" target="_blank" class="thumbnail"><img src="{$change_images|htmlentities}" onerror="this.src='{$change_images|htmlentities}';this.onerror=null;" class="img-responsive"></a></li>
                {/volist}
            </ul>
            
        </div>
    </div>
    {/if}
    
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Authen_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-authen_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[authen_time]" type="text" value="{:$row.authen_time?datetime($row.authen_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Open_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-open_id" data-rule="required" data-source="open/index" class="form-control selectpage" name="row[open_id]" type="text" value="{$row.open_id|htmlentities}">
        </div>
    </div> -->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
